﻿namespace Minotaur.App.Domains.Tenement
{
    [SugarTable("tenantinformation")]
    public class TenantInformation
    {
        [SugarColumn(ColumnName = "autoid", IsIdentity = true, IsPrimaryKey = true)]
        public virtual int AutoId { get; set; }

        /// <summary>
        /// 租户名
        /// </summary>
        [SugarColumn(ColumnName = "cnname")]
        public virtual string? CNName { get; set; }

        /// <summary>
        /// 租户的联系方式
        /// </summary>
        [SugarColumn(ColumnName = "phone")]
        public virtual string? Phone { get; set; }

        /// <summary>
        /// 租户编码
        /// </summary>
        [SugarColumn(ColumnName = "code")]
        public virtual string? Code { get; set; }

        /// <summary>
        /// 基础数据所在库
        /// </summary>
        [SugarColumn(ColumnName = "dbconnection")]
        public virtual string? DBConnection { get; set; }

        /// <summary>
        /// 流程所在数据
        /// </summary>
        [SugarColumn(ColumnName = "wf_dbconnection")]
        public virtual string? WF_DBConnection { get; set; }

        /// <summary>
        /// 流程表单所在数据库
        /// </summary>
        [SugarColumn(ColumnName = "wf_form_dbconnection")]
        public virtual string? Form_DBconnection { get; set; }

        /// <summary>
        /// 文件信息所在数据库
        /// </summary>
        [SugarColumn(ColumnName = "files_Dbconnection")]
        public virtual string? Files_DBconnection { get; set; }

        /// <summary>
        /// 文件信息所在数据库
        /// </summary>
        [SugarColumn(ColumnName = "res_dbconnection")]
        public virtual string? Res_DBconnection { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [SugarColumn(ColumnName = "enable")]
        public virtual bool Enable { get; set; }

        /// <summary>
        /// 过期日期
        /// </summary>
        [SugarColumn(ColumnName = "expirationdate")]
        public virtual DateTime? ExPirationDate { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        [SugarColumn(ColumnName = "creatdate")]
        public virtual DateTime? CreatDate { get; set; }

        /// <summary>
        /// 数据库类型
        /// </summary>
        [SugarColumn(ColumnName = "databasetype")]
        public virtual int DataBaseType { get; set; }
    }
}
